﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Taobao.Top.Api.Request
{
    public class FenXiaoGetProductsRequest:ITopRequest
    {
        #region Ctor

        public FenXiaoGetProductsRequest()
        { 
        }

        #endregion

        #region Properties

        public string OuterID
        {
            get;
            set;
        }

        public long? ProductCatID
        {
            get;
            set;
        }

        public string Status
        {
            get;
            set;
        }

        public string PID
        {
            get;
            set;
        }

        public string Fields
        {
            get;
            set;
        }


        public DateTime? StartModified
        {
            get;
            set;
        }

        public DateTime? EndModified
        {
            get;
            set;
        }

        public int? PageNo
        {
            get;
            set;
        }

        public int? PageSize
        {
            get;
            set;
        }

        #endregion

        #region ITopRequest Members

        public string GetApiName()
        {
            return "taobao.fenxiao.products.get";
        }

        public IDictionary<string, string> GetParameters()
        {
            TopDictionary paramDict = new TopDictionary();
            paramDict.Add("outer_id",OuterID);
            paramDict.Add("productcat_id", ProductCatID);
            paramDict.Add("status", Status);
            paramDict.Add("pids", PID);
            paramDict.Add("fields", Fields);
            paramDict.Add("start_modified", StartModified);
            paramDict.Add("end_modified", EndModified);
            paramDict.Add("page_no", PageNo);
            paramDict.Add("page_size", PageSize);
            return paramDict;
        }

        #endregion
    }
}
